﻿using System.Data;
using BookTheBook.Data.NameDefinitions;
using Migrator.Framework;

namespace BookTheBook.Migrations
{
    [Migration(8)]
    public class _008_ResizedImageColumn : Migration
    {
        public override void Up()
        {
          Database.ChangeColumn(TableNames.Book, new Column(ColumnNames.Image, DbType.Binary, 100000));
        }

        public override void Down()
        {
          Database.RemoveColumn(TableNames.Book, ColumnNames.Image);
        }
    }
}
